package com.lzz.dao;

import com.lzz.entity.Permission;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author zhenzhen
 * @date 2018-12-21 上午10:09
 */
@Mapper
@Component(value = "permissionDao")
public interface PermissionDao {
    int insert(Permission permission);
    int delete(String uuid);
    int update(Permission permission);
    Permission selectById(String uuid);
    int selectPage(int pageNo, int pageSize);
    List<Permission> selectByRoleId(String roleId);
}
